/*
 * File: PowerLimitFactor.c
 *
 * Code generated for Simulink model 'FLTM'.
 *
 * Model version                  : 3.214
 * Simulink Coder version         : 9.4 (R2020b) 29-Jul-2020
 * C/C++ source code generated on : Thu Sep  2 08:40:26 2021
 */

#include "PowerLimitFactor.h"

/*
 * Output and update for atomic system:
 *    'PwrLimFct' ('mylib:27')
 *    'PwrLimFct' ('mylib:27')
 *    'PwrLimFct' ('mylib:27')
 *    'PwrLimFct' ('mylib:27')
 *    'PwrLimFct' ('mylib:27')
 *    'PwrLimFct' ('mylib:27')
 *    'PwrLimFct' ('mylib:27')
 *    'PwrLimFct' ('mylib:27')
 *    'PwrLimFct' ('mylib:27')
 *    'PwrLimFct' ('mylib:27')
 *    ...
 */
void PowerLimitFactor(boolean_T Res, B_PowerLimitFactor_T *localB, uint8_T
                      rtp_PwrDwonRate)
{
    if (Res)
    {
        localB->DataTypeConversion2_o = rtp_PwrDwonRate;
    }
    else
    {
        localB->DataTypeConversion2_o = 0U;
    }
}

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
